package com.kehutong.house.entity;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;
import org.coraframework.orm.util.IDType;

import java.sql.Timestamp;
import java.util.List;

/**
 * TODO
 *
 * @author zhouweipeng
 * @version 1.0
 * @date 2021/7/29 13:46
 */
@Table(value="t_time_group", idType= IDType.TIMESTAMP,multi=true)
public class TimeGroup extends DataEntity {

    private static final long serialVersionUID = 1250557067089414992L;

    protected TimeGroup(String id) {
        super(id);
    }
    @Column(comment="时间组开始时间")
    private Timestamp beginTime;

    @Column(comment="时间组结束时间")
    private Timestamp endTime;

    @Column(comment="时间组名称")
    private String name;

    @Column(comment="周几有效1.有效、0.无效")
    private List<String> weeks;

    @Column(comment="逻辑删除")
    private boolean deleted;

    @Column(comment="每天的开始时分")
    private String hourMinuteStart;

    @Column(comment="每天的结束时分")
    private String hourMinuteEnd;

    @UnSave
    private String beginTimeStr;
    @UnSave
    private String endTimeStr;

    public Timestamp getBeginTime() {
        return beginTime;
    }

    public String getBeginTimeStr() {
        return beginTimeStr;
    }

    public void setBeginTimeStr(String beginTimeStr) {
        this.beginTimeStr = beginTimeStr;
    }

    public String getEndTimeStr() {
        return endTimeStr;
    }

    public void setEndTimeStr(String endTimeStr) {
        this.endTimeStr = endTimeStr;
    }

    public List<String> getWeeks() {
        return weeks;
    }

    public void setWeeks(List<String> weeks) {
        this.weeks = weeks;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setBeginTime(Timestamp beginTime) {
        this.beginTime = beginTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getHourMinuteStart() {
        return hourMinuteStart;
    }

    public void setHourMinuteStart(String hourMinuteStart) {
        this.hourMinuteStart = hourMinuteStart;
    }

    public String getHourMinuteEnd() {
        return hourMinuteEnd;
    }

    public void setHourMinuteEnd(String hourMinuteEnd) {
        this.hourMinuteEnd = hourMinuteEnd;
    }
}
